package com.itheima.chapter03.service.impl;

import com.itheima.chapter03.domain.Comment;
import com.itheima.chapter03.mapper.CommentMapper;
import com.itheima.chapter03.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentMapper commentMapper;

    @Override
    public int insertComment(Comment comment) {
        return commentMapper.insertComment(comment);
    }
}
